package com.kl.feign.fallback;

import com.kl.domain.CarDTO;
import com.kl.em.ConstantEnum;
import com.kl.em.Result;
import com.kl.feign.CarServiceFeign;
import org.springframework.stereotype.Component;


import java.util.List;
import java.util.Map;
@Component
public class CarServiceFeignFallback implements CarServiceFeign {
    @Override
    public Result<CarDTO> selectCarById(Long id) {
        //书写降级逻辑,大多数打印日志
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result insertCar(CarDTO carDTO) {
        //书写降级逻辑,大多数打印日志
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateCar(CarDTO carDTO, Long id, String state) {
        //书写降级逻辑,大多数打印日志
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result deleteCar(Long[] id) {
        //书写降级逻辑,大多数打印日志
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<Map<String, Object>> selectCarLikePage(Integer pageNumber, Integer pageSize, Integer carType, String site, String state, String carDriver) {
        //书写降级逻辑,大多数打印日志
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateCarBatchState(Long[] id, Integer state) {
        //书写降级逻辑,大多数打印日志
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public  Result<List<CarDTO>> getBylogitIdToList(Long id) {
        //书写降级逻辑,大多数打印日志
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result getBylogitIdUpdate(CarDTO dto) {
        //书写降级逻辑,大多数打印日志
        return Result.build(ConstantEnum.FaillBack);
    }
}
